
export function memClear(){
    for(let name in Memory.creeps) {
        if(!Game.creeps[name]) {
            delete Memory.creeps[name];
        }
    }
    if(Game.time%5000===4321 && Memory.structures){
        for(let id in Memory.structures){
            if(!Game.structures[id]){
                delete Memory.structures[id];
            }
        }
    }
}